﻿#pragma once
#ifndef __INTERNAL_COMMON_FUNCTIONS__
#define __INTERNAL_COMMON_FUNCTIONS__
#include <gdiplus.h>
using namespace Gdiplus;

int Get10ValueFrom16Value(char chValue, int index);
BYTE CStringByteToBYTE(CString aCStringByteStr);

////////////////VIP
////please use the following function to dispose SVGColor
Color SVGColorAnyStringToColor(CString aSvgColorString);

///////for SvgColor with #123456
bool isSvgColorWellHex6String(CString aSvgColor);
//////for Color with 0x12345678
bool isSvgColorRealHex8String(CString aSvgColor);
////#123456 -> 0xFF123456
CString SvgColorStringWellHex6ToRealHex8String(CString aSvgColor);
////0x12345678 -> Color
Color SvgColorRealHexStringToColor(CString aSvgColor);
/////red -> color
Color SVGColorNaturalStringToColor(CString aSvgColorString);


#endif // !__INTERNAL_COMMON_FUNCTIONS__

